<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单</title>
    <style>
        form{
            width: 300px;
            border: 1px solid #ddd;
            border-radius: 6px;
            margin: 50px auto;
            padding: 20px;
        }
        form >div{
            margin: 10px;
        }
        form >div >label{
            text-align: right;
            width: 100px;
            padding-right: 5px;
            display: inline-block;

        }
    </style>
</head>
<body>
    <form action="" method="">
        <div>
            <label for="">用户名</label>
             <input type="text"value="">
        </div>
        <div>
            <label for="">密码</label>
            <input type="password">
        </div>
    </form>
    
</body>
</html>